package cn.itsource.pojo.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * <p>
 * 
 * </p>
 *
 * @author beishan
 * @since 2024-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_driver_contract")
@Schema(name = "DriverContract对象", description = "")
public class DriverContract implements Serializable {

    private static final long serialVersionUID=1L;

    @Schema(name = "id", description = "")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(name = "driverName", description = "")
    @TableField("driver_name")
    private String driverName;

    @Schema(name = "driverPhone", description = "")
    @TableField("driver_phone")
    private String driverPhone;

    @Schema(name = "driverIdcard", description = "")
    @TableField("driver_idcard")
    private String driverIdcard;

    @Schema(name = "driverContractStatus", description = "合同状态")
    @TableField("driver_contract_status")
    private Integer driverContractStatus;

    @Schema(name = "driverContractAddress", description = "")
    @TableField("driver_contract_address")
    private String driverContractAddress;

    @Schema(name = "driverContractNum", description = "")
    @TableField("driver_contract_num")
    private String driverContractNum;

    @Schema(name = "createTime", description = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @Schema(name = "updateTime", description = "修改时间")
    @TableField("update_time")
    private Date updateTime;

    @Schema(name = "deleted", description = "逻辑删除")
    @TableField("deleted")
    @TableLogic
    private Boolean deleted;

    @Schema(name = "version", description = "乐观锁")
    @TableField("version")
    @Version
    private Integer version;

    @Schema(name = "driverId", description = "司机ID")
    @TableField("driver_id")
    private Long driverId;

}
